//
//  FirstPartCollectionViewCell.m
//  适配之道
//
//  Created by macbook on 2017/5/25.
//  Copyright © 2017年 oceansoft. All rights reserved.
//

#import "FirstPartCollectionViewCell.h"

@implementation FirstPartCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    [self addSDCycleScrollView];
    // Initialization code
}

- (void)addSDCycleScrollView
{
    NSArray *imagesArray = @[@"https://img.alicdn.com/simba/img/TB19ZhxRpXXXXbvXXXXSutbFXXX.jpg",
                             @"https://img.alicdn.com/tfs/TB16wXuRpXXXXcrXXXXXXXXXXXX-520-280.jpg_q90",
                             @"https://img.alicdn.com/tfs/TB1tIhZRpXXXXayXpXXXXXXXXXX-520-280.jpg_q90",
                             @"https://img.alicdn.com/simba/img/TB1db2aRXXXXXcYXVXXSutbFXXX.jpg"];
    
    
    SDCycleScrollView *sdcyScrollView = [[SDCycleScrollView alloc]initWithFrame:self.bounds];
    
    sdcyScrollView.imageURLStringsGroup = imagesArray;
    
    [self addSubview:sdcyScrollView];
    
    _sdcyScrollView = sdcyScrollView;
}

- (void)layoutSubviews
{
    NSLog(@"调用了该方法");
    
    _sdcyScrollView.frame = self.bounds;
}

@end
